package org.edu.modules.research.rbase.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.edu.common.base.BaseEntity;
import org.hibernate.validator.constraints.Length;

import java.io.Serializable;

/**
 * entity-教科研项目类型表
 */
@TableName
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="教科研项目类型表对象", description="ve_jky_category")
public class VeJkyCategory extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableField
    @ApiModelProperty(value = "分类名称")
    @Length(max = 100)
    private String name;

    @TableField
    @ApiModelProperty(value = "排序")
    private Integer listSort;

    @TableField
    @ApiModelProperty(value = "类型代码")
    @Length(max = 30)
    private String codeNum;

    @TableField
    @ApiModelProperty(value = "父id")
    private Integer pid;
}
